//
//  AreaInfoModel.h
//  XV
//
//  Created by apple on 31/05/2019.
//  Copyright © 2019 XR. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN




//获取信息model
@interface AreaInfoModel : NSObject

@property (nonatomic, copy) NSString *ID;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *upid;
@property (nonatomic, strong) NSMutableArray<AreaInfoModel*> *son;

@end


@interface AreaInfoManage : NSObject

@property (nonatomic, strong) NSMutableArray<AreaInfoModel*> *areaList;

//先加载本地数据
-(void)loadLocalData;

//省名转ID
-(NSString*)provinceIDFrom:(NSString*)provinceName;

//省ID和城市名得到城市ID
-(NSString*)cityIDFrom:(NSString*)provinceID cityName:(NSString*)cityName;


//省ID转城市列表
-(NSMutableArray*)cityListFrom:(NSString*)provinceID;

@end



NS_ASSUME_NONNULL_END
